package com.client.model.pojo.loan;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @TableName airui_loan
 */
@TableName(value ="airui_loan")
@Data
public class AiruiLoan implements Serializable {
    /**
     * 贷款信息
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 该贷款所属用户
     */
    @TableField(value = "uid")
    private Long uid;

    /**
     * 所贷款产品
     */
    @TableField(value = "lid")
    private Long lid;
    @TableField(value = "card_num")
    private String cardNum;
    /**
     * 贷款金额
     */
    @TableField(value = "lcount")
    private BigDecimal lcount;

    /**
     * 用户设置的还款日期
     */
    @TableField(value = "borrow_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date borrowDate;

    /**
     * 冗余字段
     */
    @TableField(value = "remark")
    private Integer remark;

    /**
     *
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     *
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
